import { Controller, Get, Post } from '@nestjs/common';
import {LoginService} from './login.service'

@Controller('swaggerToken')
export class LoginController {
    constructor(private loginService: LoginService){}

    @Post()
    swaggerToken () {
        return {
            code: 0,
            token: this.loginService.swaggerToken()
        }
    }



    @Post('pLogin')
    pLogin () {
        console.log('post登录')
        return {
            code: 0,
            token: '你好POST'
        }
    }

    @Get('login')
    login () {
        console.log('get登录')
        return {
            code: 0,
            token: '你好GET'
        }
    }

}
